package com.heima.common.enums;

import lombok.Getter;

import java.util.Objects;

@Getter
public enum UserStatusEnum {
    DISABLE_TEMP(0, "暂时不可用"),
    DISABLE_FOREVER(0, "暂时不可用"),
    ENABLE(0, "暂时不可用");

    private Integer status;
    private String desc;

    UserStatusEnum(Integer status, String desc) {
        this.desc = desc;
        this.status = status;
    }

    public static boolean isValid(Integer status) {
        if (Objects.equals(status, ENABLE.getStatus())) {
            return true;
        }
        return false;
    }
}
